﻿using System.ComponentModel;

namespace XXX.Workflow
{
	public class WorkItem1ExecutionContext : INotifyPropertyChanged
	{
		public event PropertyChangedEventHandler PropertyChanged;

		private long _CurrentItemIndex;
		public long CurrentItemIndex
		{
			get
			{
				return _CurrentItemIndex;
			}
			set
			{
				_CurrentItemIndex = value;
				OnPropertyChanged("CurrentItemIndex");
			}
		}
		private string _Data;
		public string Data
		{
			get
			{
				return _Data;
			}
			set
			{
				_Data = value;
				OnPropertyChanged("Data");
			}
		}

		#region OnPropertyChanged

		protected void OnPropertyChanged(string propertyName)
		{
			OnPropertyChanged(new PropertyChangedEventArgs(propertyName));
		}
		protected void OnPropertyChanged(PropertyChangedEventArgs args)
		{
			if (this.PropertyChanged != null)
				this.PropertyChanged.Invoke(this, args);
		}

		#endregion
	}
}
